<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改虾皮订单明细外部采购货物信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-OrderItemHeadPackage-edit" th:object="${orderItemHeadPackage}">
            <input name="orderItemHeadPackageId" th:field="*{orderItemHeadPackageId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单号：</label>
                <div class="col-sm-8">
                    <input name="orderSn" th:field="*{orderSn}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">仓库id：</label>
                <div class="col-sm-8">
                    <input name="warehouseId" th:field="*{warehouseId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">SKUID：</label>
                <div class="col-sm-8">
                    <input name="modelId" th:field="*{modelId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物流公司：</label>
                <div class="col-sm-8">
                    <input name="logisticsCompany" th:field="*{logisticsCompany}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">运单号：</label>
                <div class="col-sm-8">
                    <input name="trackingNo" th:field="*{trackingNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购平台：</label>
                <div class="col-sm-8">
                    <input name="purchasePlatform" th:field="*{purchasePlatform}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购平台名称：</label>
                <div class="col-sm-8">
                    <input name="purchasePlatformName" th:field="*{purchasePlatformName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购订单号：</label>
                <div class="col-sm-8">
                    <input name="purchaseOrderSn" th:field="*{purchaseOrderSn}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">采购订单链接：</label>
                <div class="col-sm-8">
                    <textarea name="purchaseOrderDetailUrl" class="form-control">[[*{purchaseOrderDetailUrl}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买家备注：</label>
                <div class="col-sm-8">
                    <input name="accountNote" th:field="*{accountNote}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否支持退货：</label>
                <div class="col-sm-8">
                    <input name="isApplyReturn" th:field="*{isApplyReturn}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">重量：</label>
                <div class="col-sm-8">
                    <input name="weight" th:field="*{weight}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">包裹类型：</label>
                <div class="col-sm-8">
                    <input name="hasSendPackageUnsign" th:field="*{hasSendPackageUnsign}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">到达仓库时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="arriveWarehouseTime" th:value="${#dates.format(orderItemHeadPackage.arriveWarehouseTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">签收时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="signTime" th:value="${#dates.format(orderItemHeadPackage.signTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">拒绝签收时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="refuseTime" th:value="${#dates.format(orderItemHeadPackage.refuseTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">退货时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="returnTime" th:value="${#dates.format(orderItemHeadPackage.returnTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">同意退货时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="agreeReturnTime" th:value="${#dates.format(orderItemHeadPackage.agreeReturnTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">打印退货信息时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="printReturnInfoTime" th:value="${#dates.format(orderItemHeadPackage.printReturnInfoTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">申请退货时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="applyReturnTime" th:value="${#dates.format(orderItemHeadPackage.applyReturnTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">打包时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="packTime" th:value="${#dates.format(orderItemHeadPackage.packTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">数量：</label>
                <div class="col-sm-8">
                    <input name="quantity" th:field="*{quantity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购单价：</label>
                <div class="col-sm-8">
                    <input name="purchasePrice" th:field="*{purchasePrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购总价：</label>
                <div class="col-sm-8">
                    <input name="purchaseTotalPrice" th:field="*{purchaseTotalPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">货图图片链接：</label>
                <div class="col-sm-8">
                    <textarea name="logoUrl" class="form-control">[[*{logoUrl}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "order/OrderItemHeadPackage";
        $("#form-OrderItemHeadPackage-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-OrderItemHeadPackage-edit').serialize());
            }
        }

        $("input[name='arriveWarehouseTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='signTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='refuseTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='returnTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='agreeReturnTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='printReturnInfoTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='applyReturnTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='packTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>